#ifndef __BRIDGE_H__
#define __BRIDGE_H__


void TASK_BRIDGE(void *pvParameters);

typedef struct
{
	uint32_t id;  /* can id (standard or extended) */
	int32_t len;  /* length of following data */
	uint8_t data[8];  /* data bytes */
	uint32_t padding;  /* padding bytes, do not care */
} eth_side_frame;

typedef CanRxMsg can_side_frame;

// /** 
//   * @brief  CAN Rx message structure definition  
//   */
// typedef struct
// {
//   uint32_t StdId;  /*!< Specifies the standard identifier.
//                         This parameter can be a value between 0 to 0x7FF. */

//   uint32_t ExtId;  /*!< Specifies the extended identifier.
//                         This parameter can be a value between 0 to 0x1FFFFFFF. */

//   uint8_t IDE;     /*!< Specifies the type of identifier for the message that 
//                         will be received. This parameter can be a value of 
//                         @ref CAN_identifier_type */

//   uint8_t RTR;     /*!< Specifies the type of frame for the received message.
//                         This parameter can be a value of 
//                         @ref CAN_remote_transmission_request */

//   uint8_t DLC;     /*!< Specifies the length of the frame that will be received.
//                         This parameter can be a value between 0 to 8 */

//   uint8_t Data[8]; /*!< Contains the data to be received. It ranges from 0 to 
//                         0xFF. */

//   uint8_t FMI;     /*!< Specifies the index of the filter the message stored in 
//                         the mailbox passes through. This parameter can be a 
//                         value between 0 to 0xFF */
// } CanRxMsg;




#endif
